import ajax from "@/utils/request";
import '@/mock/loginmock'

export function codeFn() {
    return ajax({
        url: '/api/code',
        method: 'post',
    })
}



export function codeLoginFn(data: { tel: string, code: string }) {
    return ajax({
        url: '/api/codelogin',
        method: 'post',
        data
    })
}


export function loginFn(data: { tel: string, password: string }) {
    return ajax({
        url: '/api/login',
        method: 'post',
        data
    })
}